Optimal. Leaf size=18 \[ \frac{(a+b) \tan (e+f x)}{f}-b x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0325623, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3191, 388, 203} \[ \frac{(a+b) \tan (e+f x)}{f}-b x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3191
Rule 388
Rule 203
Rubi steps
\begin{align*} \int \sec ^2(e+f x) \left (a+b \sin ^2(e+f x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a+(a+b) x^2}{1+x^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac{(a+b) \tan (e+f x)}{f}-\frac{b \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-b x+\frac{(a+b) \tan (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0147332, size = 36, normalized size = 2. \[ \frac{a \tan (e+f x)}{f}-\frac{b \tan ^{-1}(\tan (e+f x))}{f}+\frac{b \tan (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.05, size = 30, normalized size = 1.7 \begin{align*}{\frac{\tan \left ( fx+e \right ) a+b \left ( \tan \left ( fx+e \right ) -fx-e \right ) }{f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48076, size = 41, normalized size = 2.28 \begin{align*} -\frac{{\left (f x + e - \tan \left (f x + e\right )\right )} b - a \tan \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.75496, size = 85, normalized size = 4.72 \begin{align*} -\frac{b f x \cos \left (f x + e\right ) -{\left (a + b\right )} \sin \left (f x + e\right )}{f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \sin ^{2}{\left (e + f x \right )}\right ) \sec ^{2}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.12307, size = 66, normalized size = 3.67 \begin{align*} -\frac{{\left (f x - \pi \left \lfloor \frac{f x + e}{\pi } + \frac{1}{2} \right \rfloor + e - \tan \left (f x + e\right )\right )} b - a \tan \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]